import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
    // 加密路由，直接访问路径，除了入口文件其他路由文件，访问不到
    // mode: 'history',
    // base: process.env.BASE_URL,
    routes: [
        {
            path: '/',
            name: 'login',
            component: () =>
                import ('./components/login.vue')
        },
        {
            path: '/register',
            name: 'register',
            component: () =>
                import ('./components/register.vue')
        },
        {
            path: '/home',
            name: 'home',
            component: () =>
                import ('./components/home.vue')
        },
       
        {
            path: '/user',
            name: 'user',
            component: () =>
                import ('./components/user.vue')
        },
        {
            path: '/yuyue',
            name: 'yuyue',
            component: () =>
                import ('./components/yuyue.vue')
        },
        {
            path: '/info',
            name: 'info',
            component: () =>
                import ('./components/info.vue')
        },
        {
            path: '/myinfo',
            name: 'myinfo',
            component: () =>
                import ('./components/myinfo.vue')
        },
        {
            path: '/myinfo',
            name: 'myinfo',
            component: () =>
                import ('./components/myinfo.vue')
        },
        {
            path: '/order',
            name: 'order',
            component: () =>
                import ('./components/order.vue')
        },
        {
            path: '/aboutme',
            name: 'aboutme',
            component: () =>
                import ('./components/aboutme.vue')
        },
        {
            path: '/service',
            name: 'service',
            component: () =>
                import ('./components/service.vue')
        },
        {
            path: '/area',
            name: 'area',
            component: () =>
                import ('./components/area.vue')
        },
        {
            path: '/price',
            name: 'price',
            component: () =>
                import ('./components/price.vue')
        },
        {
            path: '/help',
            name: 'help',
            component: () =>
                import ('./components/help.vue')
        },
        {
            path: '/scope',
            name: 'scope',
            component: () =>
                import ('./components/scope.vue')
        },
        {
            path: '/price1',
            name: 'price1',
            component: () =>
                import ('./components/price1.vue')
        },
        {
            path: '/xianshi',
            name: 'xianshi',
            component: () =>
                import ('./components/xianshi.vue')
        },
        {
            path: '/finish',
            name: 'finish',
            component: () =>
                import ('./components/finish.vue')
        },
        
    ]
})